package com.polukeuro.app.client.events;

import com.google.gwt.event.shared.GwtEvent;

public class RequestEvent  extends GwtEvent<RequestHandler> {

	private static Type<RequestHandler> TYPE = new Type<RequestHandler>();

	private final String url;
	
	public RequestEvent(String url) {
		super();
		this.url = url;
	}

	public static Type<RequestHandler> getType() {
		return TYPE;
	}
	
	@Override
	protected void dispatch(RequestHandler handler) {
		handler.onRequestEvent(this);
		
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<RequestHandler> getAssociatedType() {
		return TYPE;
	}

	public String getUrl() {
		return url;
	}
	

}
